package service.v2;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import model.AddressVO;
import model.GoodStandardVO;
import model.MemberCartVO;
import model.MemberVO;
import model.OrderGoodVO;
import model.OrderTimer;
import model.OrderVO;

public interface MemberCartServise {
	
	int upDateMemberCartVo(MemberCartVO memberCartVO);

	int deleteMemberCarById(String[] arrId, String id);

	List<Object> selectGoodsCouponsInfoList(String[] arrId, String member_id, MemberCartVO memberCartVO);

	int getCartNum(String member_id);

	List<MemberCartVO> packageCartParam(String cart_ids);

	List<MemberCartVO> selectmemberCartListBuy(String cart_ids, String member_id);
	
	int checkMemberCartId(String member_id, String cart_id);

	int updateMemberCartCheck(String cart_id, String check, String member_id);

	String checkCartExsit(String standard_id, String member_id);

	void addCartNum(String id, String num);

	int checkMaxNum(String standard_id, String member_id, String num);
	
	AddressVO getMemberAddressById(String address_id);
			
	MemberVO  getMemberById(String member_id);
	
	MemberCartVO selectGoodInformationtBuyOne(String standard_id, String num);
	
	List<MemberCartVO> getMemberCardById(String[] cart_id);

	List<MemberCartVO> selectmemberCartListBuyOne(String standard_id, String num);

	boolean checkBuyGoosNumBySthandardTab(String cart_ids);
	
	boolean checkMemberCart(String member_id,String cart_id);

	int getSumTicket(String id ,String num);

	String checkGoodsBuyType(List<MemberCartVO> memberCartList);

	List<MemberCartVO> packageCartAllMoneyGoodsParam(List<MemberCartVO> l);

	List<MemberCartVO> packageCartNotAllMoneyGoodsParam(List<MemberCartVO> l);
	
	void InsertOrder(OrderVO order);
	
	void addOrderTimer(OrderTimer orderTime);
	
	List<GoodStandardVO> getGoodStandardListById(String[] standard_Id_list);
	
	void addOrderGood(OrderGoodVO ordergood);

	List<MemberCartVO> selectNewMemberCartList(String member_id, String city_id3, String lang, String country_id);

	List<model.PromotionVO> promtionListById(String member_id);

	AddressVO getMemberCartAddress(String member_id,String address_id);

	int checkCartsStandardNums(String cart_ids);

	Map cartToAccounts(String cart_ids, MemberVO memberVO,AddressVO addressVO,int ticketTotal, String lang);

	Map buyNowToAccounts(String standard_id, String num, MemberVO memberVO, AddressVO addressVO, int ticketTotal, String lang);

	public double buySale(String sell_price, String buy_type, String ticket, String ticket_price,String member_level,String ticket_rule,String percent_rule,double rate);

	double getMemberPrice(String sell_price, String buy_type, String ticket, String ticket_price, String level,
			String ticket_rule, String percent_rule, double member_rate);

	MemberVO getCartCityInfo(String member_id);

	MemberVO getDefaultaAddress();

	MemberVO packageAddress(MemberVO vo);

	MemberVO checkeAddrese(MemberVO vo, String member_id);

	int getPackageCountByMemberId(String member_id);

	void addCart(String standard_id, String member_id, String num, String lang);

	String selectCartGoodNum(String member_id, String lang);

	int checkLimitedNums(Map<String, String> map);

	String checkLimitedNumsByStandardId(String standard_id);

	MemberVO packageAddressEn(MemberVO vo);

	MemberVO getDefaultaAddressInter(String string, String lang);

	MemberVO getCartCityInfoInter(String member_id, String lang);

}
